<template>
	<view class="banner-detail">
    <div class="banner-name">{{ detail.name }}</div>
    <div class="banner-desc">
      <div>
        作者：{{ detail.author || '' }}
      </div>
      <div style="margin: 0 20rpx">
        来源：{{ detail.source || '' }}
      </div>
      <div>
        时间：{{ detail.publish_time || '' }}
      </div>
    </div>
    <u-parse :html="detail.content"></u-parse>
	</view>
</template>

<script>
  export default {
		data() {
			return {
        detail: {

        }
			}
		},
    onLoad({ id }) {
      this.$api.bannerDetail(id).then(res => {
        this.detail = res
      })
    },
		methods: {

		}
	}
</script>

<style lang="scss">
.banner-detail {
  height: 100%;
  background: #ffffff;
  padding: 24rpx;
  .banner-name {
    font-size: 32rpx;
    font-weight: 500;
    line-height: 40rpx;
    text-align: center;
    color: #000000;
  }
  .banner-desc {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24rpx;
    color: #999999;
    margin: 24px 0;
  }
}
</style>
